﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupList.aspx.cs" Inherits="Manage_Member_GroupList" %>
<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <%=ManageHelper.PageErrMsg()!=""?"<div class='msg_failed'>"+ManageHelper.PageErrMsg()+"</div>":""%>
    <table width="95%" align="center">
        <tr>
            <td align="right">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                       <!-- 修改 -->
                            <%if (ManageHelper.CheckAdminHavePower("system_membergroupadd"))
                              {%>
                            <input type="submit" name="AddGroup" value="添加内容模型" onclick="ymPrompt.win('GroupItem.aspx',400,270,'添加内容模型',null,null,null,true);"
                                id="AddGroup" class="button" />                            
                             <%}%>                            

                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div class="column">
        <div class="columntitle">积分用户组</div>
        <div class="tips">积分用户组以积分确定组别和权限，系统将根据用户积分判断所在组别并赋予相应的阅读及操作权限。</div>
        <table cellspacing="0" cellpadding="4" border="0" style="border-width:0px;width:100%;border-collapse:collapse;">
            <tr class="summary-title" style="height: 25px; padding-left:20px" align="left">
                <td>&nbsp;&nbsp;会员组名称</td>
                <td>最低积分</td>
                <td>最高积分</td>
                <td>信息发布量</td>
                <td>信息有效期</td>
                <td>会员组等级</td>
                <td>会员组颜色</td>
                <td align="center">操作</td>
            </tr>
            <%
            foreach (KeRui.Model.MemberGroup model in list)
            {
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height: 25px;" align="left">
                <td>&nbsp;&nbsp;<%=model.GroupName%></td>
                <td><%=model.EPStart%></td>
                <td><%=model.EPEnd%></td>
                <td><%=model.PublishNum%>&nbsp;&nbsp;条</td>
                <td><%=model.EffectiveDate%>&nbsp;&nbsp;天</td>
                <td><%=model.GroupLevel%> <%=MemberGroupLevelImage(model.GroupLevel) %></td>
                <td>
                    <table border="0" cellspacing="0" cellpadding="0">
	                    <tr style="height:20px">
		                <td style="width:20px;background-color:<%=model.GroupColor%>;cursor:pointer">&nbsp;</td>
		                </tr>
		            </table>
                </td>                
                <td align="center"> 
            <!-- 修改 -->
            <%if (ManageHelper.CheckAdminHavePower("system_membergroupedit"))
              {
                %>
                    <a href="javascript:ymPrompt.win('GroupItem.aspx?id=<%=model.GroupID %>&act=edit',400,270,'修改用户组',null,null,null,true);"> 修改</a> | 
                <%
              }
              else
              { %><s>修改</s><%} %>
            
            <!-- 删除 -->
            <%if (ManageHelper.CheckAdminHavePower("system_membergroupdel"))
              { 
                %>
                    <a href='GroupItem.aspx?id=<%=model.GroupID %>&act=del'onclick="javascript:return confirm('此操作将会删除用户组“<%=model.GroupName %>”，确认吗？');"> 删除</a></td>
                <%
              }
              else
              { %><s>删除</s><%} %>
            </tr>
            <%
             }
            %>
        </table>
    </div>
</body>
</html>
